<?php defined('_JEXEC') or die(); ?>
<div class="css_menu">
	<ul id="vertnav">
		<?php foreach ($items as $item) { ?>
		<li>
			<span class="vertnav-cat"><a href="<?php echo JRoute::_($item['link'] . '&Itemid=' . $item['id']); ?>"><?php echo $item['name']; ?></a><span>
			<?php if (isset($item['items'])) { ?>
			<div class="css_submenu">
				<ul>
					<?php foreach ($item['items'] as $subitem) { ?>
					<li>
						<a href="<?php echo JRoute::_($subitem['link'] . '&Itemid=' . $subitem['id']); ?>"><?php echo $subitem['name']; ?></a>
					</li>
					<?php } ?>
				</ul>
			</div>
			<?php } ?>
		</li>
		<?php } ?>
	</ul>
</div>